//
//  HomeViewController.m
//  XM
//
//  Created by mingyue on 2017/12/18.
//  Copyright © 2017年 mingyue. All rights reserved.
//

#import "HomeViewController.h"
#import "THGoodsCarNetManager.h"
@interface HomeViewController ()

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //轮播图
    [[THGoodsCarNetManager shareNetWorkManager] GT_getGoodsBannerWithShowType:nil type:0 success:^(TH_BaseResponse *res) {

        NSDictionary  *dic = (NSDictionary*)res;
//        if ([[dic objectForKey:@"code"] isEqualToString:TH_LIVE_SUCCESS_CODE]&&[Gold_ValidationUtil validateDictionary:dic]) {
//            
//            HomeBannerModel * homeModel = [HomeBannerModel mj_objectWithKeyValues:dic];
//            BannerResultModel *bannerModel =  (BannerResultModel*)homeModel.result;
//            self.bananerArr = [bannerModel.datas mutableCopy];
//            if ([self.bananerArr count]>0) {
//                [self.netImagesArray removeAllObjects];
//            }
//            for (BannerDatasModel *model in self.bananerArr ){
//                [self.netImagesArray addObject:[NSURL URLWithString:TH_GetImageBaseUrl(model.imgUrl)]];
//                
//            }
//            //设置网络图片数组
//            self.cycleScrollView.imageURLStringsGroup = self.netImagesArray;
//            
//            if ([self.netImagesArray count] < 2) {
//                self.cycleScrollView.autoScroll = NO;
//            }
//        }
        
    } failure:^(NSError *error) {
        DLog(@"%@",error);
       
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
